<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>测评工具平台</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta http-equiv="Access-Control-Allow-Origin" content="*">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="icon" href="favicon.ico">
	<link rel="stylesheet" href="{{ URL::asset('resources/assets/css/index_1.css') }}" media="all" />
	<link rel="stylesheet" href="{{ URL::asset('http://at.alicdn.com/t/font_tnyc012u2rlwstt9.css') }}" media="all" />
	<link rel="stylesheet" href="{{ URL::asset('resources/assets/css/index_2.css') }}" media="all" />
	<script type="text/javascript" src="{{ URL::asset('resources/assets/js/jquery.js') }}"></script>
	<style>
    	
	</style>
	
</head>
<body class="main_body">
	<div class="layui-layout layui-layout-admin">
		<!-- 顶部 -->
		<div class="layui-header header">
			<div class="layui-main">
				<a href="#" class="logo">测评工具平台</a>
			    <!-- 顶部右侧菜单 -->
			    <ul class="layui-nav top_menu">
					<li class="layui-nav-item" id="change_password">
						<a href="javascript:void(0);" onclick="change_password()"><cite>修改密码</cite></a>
					</li>
					<li class="layui-nav-item" >
						<a href="index.php?do=logout"><cite>退出</cite></a>
					</li>
				</ul>
			</div>
		</div>
		<!-- 左侧导航 -->
		<div class="layui-side layui-bg-black">
			<div class="navBar layui-side-scroll" style="margin-top:10px;">
				<ul class="layui-nav layui-nav-tree" >
					@foreach($firstArr as $k=>$v)
					<li class="layui-nav-item">
						<a href="javascript:void(0);" class="nav-parent" onclick="showChild({{$k}});"><cite>{{ $v }}</cite><span class="layui-nav-more"></span></a>
						<dl class="layui-nav-child nav-child-{{$k}}" style="display:none;">
							@foreach($secArr[$k] as $k1=>$v1)
							<dd class="layui-this">
								<a href="{{$v1['url']}}" >{{ $v1['names'] }}</a>
							</dd>
							@endforeach
						</dl>
					</li>
					@endforeach
				</ul>

			</div>
		</div>
		
		<!-- 右侧内容 -->
		<div class="layui-body layui-form" style="bottom:0px;">
			<div class="layui-tab marg0" lay-filter="bodyTab" id="top_tabs_box">
				<div class="layui-tab-content clildFrame">
					<div class="layui-tab-item layui-show">
						<iframe id="add_html" src="{{url('Admin/index/index')}}"></iframe>
					</div>
				</div>
			</div>
		</div>
		<!-- 底部 -->
		 
	</div>
	
	<!-- 移动导航 -->
	<div class="site-tree-mobile layui-hide"><i class="layui-icon">&#xe602;</i></div>
	<div class="site-mobile-shade"></div>
 
</body>
	<script>
	//点击一级菜单
	function showChild(k){
		$(".nav-child-"+k).toggle();
	}
	
	//点击选中栏
	$(".nav_left").click(function (){
		$(".nav_left").removeClass("selected");
		$(this).addClass("selected");
		$("#add_html").attr("src",$(this).attr("data"));
	});
	
	//修改密码
	function change_password(){
		$("#add_html").attr("src","index.php?do=change_pwd");
	}
	
	
	</script>
</html>